<?php

class model_slider_image extends model_version {
	public $pk = "uuid";
	public $table = "slider_image";
	public function model_version_delete_byPk($pk, $insertLog = false, $deleteRelativeRecords = false) {
		if ($deleteRelativeRecords) {
			$exist_data = $this->get ( $pk );
			if (strlen ( $exist_data ['resource_uuid'] ) > 0) {
				$resource_obj = spClass ( "model_resource" );
				$resource_obj->deleteByPk ( $exist_data ['resource_uuid'] );
			}
		}
		parent::model_version_delete_byPk ( $pk, $insertLog );
	}
}

?>